#!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@NAME          : fileapi.py
@TIME          : 2024/11/26 19:50:27
@AUTHOR        : chenlip
@VERSION       : 0.0.1
@DESCRIPTION   : 文件操作API, 使用flask-restx实现
'''
# --------------------------引用--------------------------
import os, sys, json
from flask import Blueprint, render_template
from flask import request
from flask_restx import Api, Resource, fields

from common.utils import Utils as ut
# --------------------------引用--------------------------

mcapi = Blueprint('mcapi', __name__ , url_prefix='/api/v1')
fnapi = Api(mcapi, version='1.0', title='Minio文件操作API', description='文件操作API', doc='/doc')
# 名称空间
ns = fnapi.namespace('fileapi', description='Minio文件操作API')

# --------------------------模型--------------------------
# Minio 文件夹模型
mcdirmodel = fnapi.model('McDirModel', {
    'objname': fields.String(required=True, description='对象名称'),
    'objtype': fields.String(required=True, description='地下类型'),
    'objfather': fields.Integer(required=True, description='父对象')
})
